package com.dkm.dkmproject;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: mybatisplus
 * @description  mybatis-plus分页插件<br>
 * @author: 周佳佳
 * @create: 2020-04-20 20:12
 **/
@Configuration
@MapperScan("com.dkm.dkmproject.dao*")
public class MybatisPlusConfig {

    /**
     * mybatis-plus分页插件<br>
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
